﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace _086.JWT封装的使用.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    [Authorize] // controller下面的所有方法都需要登录才能访问
    public class LoginController : ControllerBase
    {
        [HttpGet]
        public string Test1()
        {
            return "ok";
        }
    }
}
